Ext.namespace("Mind.admin.security");
Mind.admin.security.org = function(panelId, title, iconClz){
	var optBar = ["-", {
		text : "新增",
		iconCls : "add",
		handler : function(){
			alert("add");
		}
	}, "-", {
		text : "修改",
		iconCls : "edit",
		handler : function(){
			alert("edit");
		}
	}, "-", "->"];
	var queryBar = [new Ext.form.TextField({}), {
		text : "查询",
		iconCls : "query",
		handler : function(b, e){
			alert(b.previousSibling().getValue());
		}
	}, "-"];

	return new Ext.Panel({
		id : panelId,
		title : title,
		closable : true,
		iconCls : iconClz,
		tbar : genToolBar(optBar, queryBar, panelId)
	});
}
registerModule("Mind.admin.security.org", Mind.admin.security.org);